package com.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		A a = context.getBean(A.class);
		a.test();

//		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext();
//		ac.register(AppConfig.class);
//		//ac.getEnvironment().setRequiredProperties("learn");
//		ac.refresh();
//		ac.registerShutdownHook();
	}
}